package gui.common;

import java.util.HashMap;
import java.util.Map;

import gui.inventory.ProductContainerData;
import gui.item.ItemData;
import gui.product.ProductData;
import coreModel.*;


/**
 * This is a class to hold/set the current selections 
 * that the view has. This is for easy access from
 * ALL the controllers
 * @author drewski
 *
 */
public class GUISelections
{
	private static GUISelections instance;
	
	ProductContainerData container;
	ProductData product;
	ItemData item;
	
	private GUISelections()
	{
		
	}
	
	public static GUISelections getInstance()
	{
		if (instance == null)
			instance = new GUISelections();
		
		return instance;
	}

	public ProductContainerData getContainer()
	{
		return container;
	}

	/*
	 * 		Getters and Setters
	 */
	
	public void setContainer(ProductContainerData container)
	{
		this.container = container;
	}
	
	
	public ProductData getProduct()
	{
		return product;
	}

	public void setProduct(ProductData product)
	{
		this.product = product;
	}

	public ItemData getItem()
	{
		return item;
	}

	public void setItem(ItemData item)
	{
		this.item = item;
	}
	
}
